﻿using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Hosting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;

namespace xycn.framework
{
    /// <summary>
    /// 统一数据回应格式
    /// </summary>
    public class CommonResponse
    {
        /// <summary>
        /// 框架层请求状态 200成功 可参照Http响应状态对应
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 框架层错误码 0无错误 500服务器错误 404未找到 503服务器不可用 302用户认证信息已过期
        /// </summary>
        public int Code { get; set; }

        /// <summary>
        /// 框架层描述信息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 接口实际响应数据实体
        /// </summary>
        public dynamic ResultBody { get; set; }
    }
}
